const { searchAgen, agnetSelect, addAgent, changeAgent, deleteAgent, getAgent } = require("../controller/agent")
const router = require("koa-router")()
const auth = require("../middleware/auth");

//登陆 
router.post('/searchAgen', auth, searchAgen)
router.post('/agnetSelect', auth, agnetSelect)
router.post('/addAgent', auth, addAgent)
router.post("/changeAgent", auth, changeAgent)
router.post("/deleteAgent", auth, deleteAgent)
router.get('/getAgent', auth, getAgent)
module.exports = router
